<?php
class Default_Form_Search extends Ext_Form
{
	public function init()
	{
		$this->setAction( '/node/search/' );
		$this->addElement('text', 'key', array(
            'required'   => true
        ));
		
        // Add the submit button
        $this->addElement( 
        	'submit', 
        	'buscar', 
        	'attribs', array( 'class' => 'search_buttom', 'value' => '' ) 
        );
        
        
        $this->removeAllDecorators();
        
        
        // renderer de este form
        $this->setDecorators( 	
			array( 
				array( 
					'ViewScript', 
					array( 'viewScript' => 'node/searchForm.phtml' ) 
				) 
			) 
		);
        
	}
}